package com.cn.kabalifemerchants.ui;


import com.cn.kabalifemerchants.base.BasePresenter;

/**
 * Created by 晓林 on 2020/8/17.
 * function:
 */
public class MainActivityPresenter extends BasePresenter<MainActivityView> {

//    public void onUserInfoData(String token) {
//        OkGo.<MyUserInfoBean>get(Api.API_USER_INFO)
//                .headers("token", token)
//                .execute(new CacheCallBack<MyUserInfoBean>() {
//                    @Override
//                    public void onSuccess(Response<MyUserInfoBean> response) {
//                        super.onSuccess(response);
//                        LoggerUtils.e("我的" + response.body());
//                        if (isViewAttached())
//                            if (response.body().getCode() == Constants.HTTP_SUCCESS)
//                                getView().onUserInfoSuccess(response.body());
//                            else if (response.body().getCode() == Constants.HTTP_AGAIN_LOGIN)
//                                getView().onReLoggedIn(response.body().getMsg());
//                            else
//                                getView().onError(response.body().getMsg());
//                    }
//                });
//    }
}
